//
//  TodayStatisticsView.m
//  Water
//
//  Created by yh on 2017/12/1.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import "TodayStatisticsView.h"
#import "AppDataBaseManager.h"
@implementation TodayStatisticsView

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self setupView];
    }
    return self;
}

- (void)setupView{
    CGFloat chartViewWidth  = SCREEN_WIDTH;
    CGFloat chartViewHeight = SCREEN_HEIGHT;
    self.chartView = [[AAChartView alloc]initWithFrame:CGRectMake(0, 0, chartViewWidth, chartViewHeight)];
    //设置图表视图的内容高度(默认 contentHeight 和 AAChartView 的高度相同)
    self.chartView.contentHeight = SCREEN_HEIGHT ;
    [self addSubview:self.chartView];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
